import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from '../views/Login.vue'
import Welcome from '../views/Welcome.vue'
import Staff from '../views/Staff.vue'
import Supplier from '../views/Supplier.vue'
import Good from '../views/Good.vue'

Vue.use(VueRouter)

const routes = [
  {
  	  path: '/',
  	  redirect: '/Login',
  },
  {
  	  path: '/Login',
  	  name: 'Login',
  	  component: Login,
  },
  {
    path: '/Home',
    name: 'Home',
    component: Home,
  	redirect: '/welcome',
  	children: [
  		{ path: '/welcome', component: Welcome, },
  		{ path: '/staff', component: Staff, },
  		{ path: '/supplier', component: Supplier, },
  		{ path: '/good', component: Good, },
  		// { path: '/outpatientDiagnosis', component: OutpatientDiagnosis, },
  		// { path: '/outpatientPharmacyWorkstation', component: OutpatientPharmacyWorkstation, },
  		// { path: '/drugCatalogueManagement', component: DrugCatalogueManagement, },
  		// { path: '/outpatientFinancialManager', component: OutpatientFinancialManager, },
  		// { path: '/outpatientDailyCheck', component: OutpatientDailyCheck, },
  		// { path: '/outpatientDepartmentWorkloadStatistics', component: OutpatientDepartmentWorkloadStatistics, },
		// { path: '/inspectionAndRegistration', component: InspectionAndRegistration, },
  		// { path: '/checkResultEntry', component: CheckResultEntry, },
  		// { path: '/prescription', component: Prescription, },
  		// { path: '/caseState', component: CaseState, },s
  		// { path: '/costDetails', component: CostDetails, },
  		// { path: '/checkin', component: CheckIn, },
  		// { path: '/personalworkload', component: PersonalWorkload, },
  	]
  },
]

const router = new VueRouter({
  routes
})

export default router
